# [表达式 for 变量名 in 可迭代类型 if 条件]
num_list = [i for i in range(10) if i % 2 == 0]
print(num_list)

num_list = [i*i for i in range(10)]
print(num_list)
